package LeetCode;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}10:00
 */
public class LeetCode237 {
    public class ListNode {
        int val;
        ListNode next;
        ListNode(int x) { val = x; }
    }
    public void deleteNode(ListNode node) {
        if (node == null){
            return;
        }
        node.val = node.next.val;
        node.next = node.next.next;
    }
}
